﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace ConsoleApplication1 {
    class Message {
        public uint requestID;
        public uint responseID;
        public uint errorID;
        public Type responseType;
        public Type errorType;

        public string getName(uint userID) {
            return "";
        }
    }
    
    class Program {
        static void Main(string[] args) {
            Type messageType = typeof(Message);
            MethodInfo getNameMethod = messageType.GetMethod("getName");
            Type returnType = getNameMethod.ReturnType;

            Type primitiveType = typeof(string);
        }
    }
}
